.login {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  position: relative;
  overflow: hidden;
}

.login::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(63, 94, 251, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(252, 176, 64, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(63, 94, 251, 0.1) 0%, transparent 50%);
  animation: breathe 6s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}

.loginWrapper {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  padding: 2rem;
}

.loginHeader {
  text-align: center;
  margin-bottom: 3rem;
}

.loginHeader .logo {
  width: 88px;
  height: 88px;
  margin: 0 auto 2rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 20px 40px rgba(102, 126, 234, 0.3);
  transition: all 0.3s ease;
}

.loginHeader .logo:hover {
  transform: translateY(-2px);
  box-shadow: 0 25px 50px rgba(102, 126, 234, 0.4);
}

.loginHeader .logo img {
  width: 52px;
  height: 52px;
  filter: brightness(0) invert(1);
  position: relative;
  z-index: 1;
}

.loginHeader h1 {
  color: #2d3748;
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #2d3748 0%, #667eea 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.loginHeader p {
  color: #64748b;
  font-size: 1.1rem;
  margin: 0;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.loginContainer {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 32px;
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  overflow: hidden;
  position: relative;
  transition: all 0.3s ease;
}

.loginContainer:hover {
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
}

.stepContainer {
  display: flex;
  width: 200%;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.step {
  width: 50%;
  flex-shrink: 0;
  min-height: 400px;
}

.loginCard {
  background: transparent;
  border: none;
  padding: 3rem;
  box-shadow: none;
}

.cardHeader {
  text-align: center;
  margin-bottom: 2.5rem;
}

.cardHeader h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.stepIndicator {
  color: #64748b;
  font-size: 1rem;
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  background: rgba(102, 126, 234, 0.08);
  border-radius: 20px;
}

.stepIndicator::before {
  content: '';
  width: 10px;
  height: 10px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.loginInput {
  border-radius: 16px;
  border: 2px solid #e2e8f0;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
}

.loginInput:hover {
  border-color: #667eea;
  background: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.12);
}

.loginInput:hover .ant-input {
  color: #2d3748 !important;
}

.loginInput:hover .ant-input::placeholder {
  color: #64748b !important;
}

.loginInput:focus {
  border-color: #667eea;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.12);
  transform: translateY(-1px);
}

.loginInput:focus .ant-input {
  color: #2d3748 !important;
}

.loginInput:focus .ant-input::placeholder {
  color: #64748b !important;
}

.loginInput .ant-input {
  font-size: 1rem;
  color: #2d3748;
  font-weight: 500;
}

.loginInput .ant-input::placeholder {
  color: #64748b;
  font-weight: 400;
}

/* Select 组件样式 */
.loginSelect .ant-select-selector {
  border: 2px solid #e2e8f0 !important;
  border-radius: 16px !important;
  background: rgba(255, 255, 255, 0.9) !important;
  padding: 0.5rem 1rem !important;
  min-height: 52px !important;
  font-size: 1rem !important;
  transition: all 0.3s ease !important;
}

.loginSelect .ant-select-selection-placeholder {
  color: #64748b !important;
  font-weight: 400 !important;
}

.loginSelect .ant-select-selection-item {
  color: #2d3748 !important;
  font-weight: 500 !important;
  font-size: 1rem !important;
}

.loginSelect:hover .ant-select-selector {
  border-color: #667eea !important;
  background: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.12) !important;
}

.loginSelect:hover .ant-select-selection-item {
  color: #2d3748 !important;
}

.loginSelect:hover .ant-select-selection-placeholder {
  color: #64748b !important;
}

.loginSelect.ant-select-focused .ant-select-selector {
  border-color: #667eea !important;
  background: #fff !important;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.12) !important;
  transform: translateY(-1px);
}

.loginSelect.ant-select-focused .ant-select-selection-item {
  color: #2d3748 !important;
}

.loginSelect.ant-select-focused .ant-select-selection-placeholder {
  color: #64748b !important;
}

/* 按钮基础样式 */
.nextButton,
.loginButton {
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.25);
}

.nextButton {
  width: 100%;
  margin-top: 2rem;
  color: #fff !important;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  border: none !important;
}

.nextButton span {
  color: #fff !important;
}

.nextButton.ant-btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  border-color: transparent !important;
  color: #fff !important;
}

.nextButton.ant-btn-primary:hover {
  background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%) !important;
  border-color: transparent !important;
  color: #fff !important;
}

.nextButton:hover,
.loginButton:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(102, 126, 234, 0.35);
  color: #fff !important;
  background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%) !important;
  border-color: transparent !important;
}

.nextButton:hover span,
.loginButton:hover span {
  color: #fff !important;
}

.nextButton:active,
.loginButton:active {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.25);
}

.buttonGroup {
  display: flex;
  gap: 1.25rem;
  margin-top: 2rem;
}

.backButton {
  flex: 1;
  height: 56px;
  border-radius: 16px;
  border: 2px solid #e2e8f0;
  color: #64748b;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.9);
  transition: all 0.3s ease;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}

.backButton:hover {
  border-color: #667eea;
  color: #667eea !important;
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.12);
}

.loginButton {
  flex: 2;
  color: #fff !important;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  border: none !important;
}

.loginButton span {
  color: #fff !important;
}

.loginButton.ant-btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  border-color: transparent !important;
  color: #fff !important;
}

.loginButton.ant-btn-primary:hover {
  background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%) !important;
  border-color: transparent !important;
  color: #fff !important;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .loginWrapper {
    max-width: 100%;
    padding: 1rem;
  }

  .loginHeader h1 {
    font-size: 2rem;
  }

  .loginHeader .logo {
    width: 72px;
    height: 72px;
  }

  .loginCard {
    padding: 2rem 1.5rem;
  }

  .buttonGroup {
    flex-direction: column;
    gap: 1rem;
  }

  .backButton,
  .loginButton {
    flex: none;
    width: 100%;
  }

  .backButton {
    order: 2;
  }

  .loginButton {
    order: 1;
  }
}

/* Ant Design 组件样式覆盖 */
.ant-form-item {
  margin-bottom: 2rem;
}

.ant-form-item-label > label {
  font-weight: 600;
  color: #2d3748;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.ant-form-item-label > label.ant-form-item-required:not(.ant-form-item-required-mark-optional)::before {
  color: #667eea;
}

.ant-input-prefix {
  margin-right: 0.75rem;
  color: #64748b;
}

.inputIcon {
  color: #64748b;
  font-size: 1.1rem;
}

.step {
  animation: slideInRight 0.6s ease;
}

@keyframes slideInRight {
  0% {
    opacity: 0;
    transform: translateX(20px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}
